home *** CD-ROM | disk | FTP | other *** search
- At 11:08 AM 4/30/94 -0400, paul@atlas.abccomp.oz.au wrote:
- >Thus expounded Jim Greuel X2493 on Apr 26, 6:44pm:
- >/--------------------
- >|Are there any winsock implementations which optimize local
- >|communications (i.e., communications in which the "remote"
- >|socket is actually on the local node) by using some local IPC
- >|mechanism rather than sending the data down the networking
- >|stack, ala Unix domain sockets?
- >
- >Jim,
- >What other IPC mechanism did you have in mind - sending a windows
- >message to yourself? :) Why go the long way round sending the data to
- >yourself when you can simply pass it down your own code chain and
- >back up again?
-
- Not to gainsay the point above, which is valid enough in some cases, but...
-
- Let's not forget, everybody, that a client may want to contact a server
- w/out knowing at compile-time where the server resides at all, not even
- whether or not it's on the same host as the client.
-
- Unix apps rely on loopback to do this in a transparent fashion. And lots of
- folks are required to port Unix code to Windows. Me, ferinstance.
-
- So, let's keep this functionality in the API, and just implement it in the
- DLL in an efficient way.
-
- And while I'm ranting... we really should have BSD-style loopback in the
- next Winsock spec. I hate it when implementors say "oh, we don't have
- loopback, and you've got no grounds for complaint because it's not spelled
- out in the spec."
-
- And don't forget, there are two styles of loopback in the BSD world - one
- where you give an IP address that happens to be that of your host, and
- another where you give an IP = 127.0.0.1. The first is much more important,
- IME, but thoroughness counts.
-
- -------------------------------------------------------------------------
- neil_r@gradient.com (Neil Rowland)
- "A simple man believes anything, but a prudent man gives
- thought to his steps." Proverbs 14:15
- -------------------------------------------------------------------------
-
-